package com.zrar.ak.gkpt.util;

/**
 * @ClassName: BusinessCommonTools
 * @Description 业务通用工具类
 * @Author liyang
 * @Time 2020/02/14
 */
public class BusinessCommonTools {

    /**
     * 根据流转状态获取备案过程中的业务状态
     * @param circulationStatus
     * @return
     */
    public static String circulationStatusToRecordBusinessStatus(String circulationStatus){
        String recordBusinessStatus = null;
        if(BusinessEnum.CIRCULATION_STATUS_ASSIGN.equals(circulationStatus)){
            //下发------未回复
            recordBusinessStatus = BusinessEnum.BUSINESS_STATUS_REPLY_N.getValue();
        }else if(BusinessEnum.CIRCULATION_STATUS_REPLY.equals(circulationStatus)){
            //回复------已回复
            recordBusinessStatus = BusinessEnum.BUSINESS_STATUS_REPLY_Y.getValue();
        }else if(BusinessEnum.CIRCULATION_STATUS_RETURN.equals(circulationStatus)){
            //退回修改------退回修改
            recordBusinessStatus = BusinessEnum.BUSINESS_STATUS_RETURN.getValue();
        }else if(BusinessEnum.CIRCULATION_STATUS_END.equals(circulationStatus)){
            //结束------已备案
            recordBusinessStatus = BusinessEnum.BUSINESS_STATUS_RECORD_Y.getValue();
        }
        return recordBusinessStatus;
    }


}
